package com.yunkuhui.www.demo.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "user-info")
public class User {

	private String userName;

	private String userPassword;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date userBirthday;

	private Integer userAge;

	private Character userSex;

	private Boolean userMarriage;

	private User[] userArray;

	private List<User> userList;

	private Map<String, User> userMap;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public Date getUserBirthday() {
		return userBirthday;
	}

	public void setUserBirthday(Date userBirthday) {
		this.userBirthday = userBirthday;
	}

	public Integer getUserAge() {
		return userAge;
	}

	public void setUserAge(Integer userAge) {
		this.userAge = userAge;
	}

	public Character getUserSex() {
		return userSex;
	}

	public void setUserSex(Character userSex) {
		this.userSex = userSex;
	}

	public Boolean getUserMarriage() {
		return userMarriage;
	}

	public void setUserMarriage(Boolean userMarriage) {
		this.userMarriage = userMarriage;
	}

	public User[] getUserArray() {
		return userArray;
	}

	public void setUserArray(User[] userArray) {
		this.userArray = userArray;
	}

	public List<User> getUserList() {
		return userList;
	}

	public void setUserList(List<User> userList) {
		this.userList = userList;
	}

	public Map<String, User> getUserMap() {
		return userMap;
	}

	public void setUserMap(Map<String, User> userMap) {
		this.userMap = userMap;
	}
}
